package cz.muni.dao;

import cz.muni.entities.Courier;
import cz.muni.entities.Shipment;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Ondrej Sotolar
 */
@Local
public interface ShipmentDaoLocal {
    void create(Shipment t);

    void delete(Shipment t);

    Shipment find(Long id);

    Shipment update(Shipment t);
    
    List<Shipment> findAll();
    
    List<Shipment> findByState(String state);
    
    List<Shipment> findByStateAndCourier(String state, Courier courier);
    
    Shipment findByTrackingNumber(final Long number);
}
